<?php 
 
class ColorField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
  }

  public function __toString(){
      $color = $this->args->color;
      return form::input($this->field_name,$this->field_value,"style='background-color:$color;'")."<a href='google.com'>hacia google</a>";
  }  

}

?>